//
//  CLunderTableCell.m
//  I-want-go
//
//  Created by dllo on 15/10/26.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "CLunderTableCell.h"
#import "CLscreen.h"
@implementation CLunderTableCell

- (void)dealloc {
    [_leftAddlabel release];
    [_leftImage release];
    [_leftproducrLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    self.leftImage = [[UIImageView alloc] init];
    self.leftImage.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.leftImage];
    [_leftImage release];
    
    self.leftAddlabel = [[UILabel alloc] init];
    self.leftAddlabel.backgroundColor = [UIColor whiteColor];
    self.leftAddlabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.leftAddlabel];
    [_leftAddlabel release];
    
    self.leftproducrLabel = [[UILabel alloc] init];
    self.leftproducrLabel.backgroundColor = [UIColor whiteColor];
    self.leftproducrLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.leftproducrLabel];
    [_leftproducrLabel release];
    
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.leftImage.frame = CGRectMake(10 * SWIDTH, 5 * SHEIGHT, 157 * SWIDTH, 150 * SHEIGHT);
    
    self.leftAddlabel.frame = CGRectMake(170 * SWIDTH, 15 * SHEIGHT, 200 * SWIDTH, 50 * SHEIGHT);
    
    self.leftproducrLabel.frame = CGRectMake(185 * SWIDTH, 80 * SHEIGHT, 187 * SWIDTH, 30 * SHEIGHT);
    
    }















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
